// 题27
function Test27() {
	const p1 = new Promise((resolve) => {
		setTimeout(() => {
			resolve('resolve3');
			console.log('timer1');
		}, 0);
		resolve('resolve1');
		resolve('resolve2');
	})
		.then((res) => {
			console.log(res);
			setTimeout(() => {
				console.log(p1);
			}, 1000);
		})
		.finally((res) => {
			console.log('finally', res);
		});
}
Test27()
// 结果：
// resolve1
// finally undefined
// timer1
// Promise {<fulfilled>: undefined}
/**
 * 解析：
 */